// 新增方法
// 1.对于一些超过2个字符，异形字 codePointAt()
// 𠮷
let text="𠮷";
console.log(text.length);//2
console.log(text.charAt());//�
console.log(text.codePointAt(0));//134071

// String.fromCodePoint 对于两个字符的码点
console.log(String.fromCodePoint(134071));//𠮷

// repeat重复字符串，padStart补全字符串头部。padEnd补全字符串尾部
console.log("x".repeat(5));
console.log("xyz".repeat(3));
console.log("xyz".repeat(0));
console.log("xyz".padStart(5,"kunkubn"));
console.log("xyz".padEnd(8,"yeye"));

